package com.ledi.guns.common.persistence.model;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.Version;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * </p>
 *
 * @author ledi
 * @since 2017-11-29
 */
@TableName("t_agent_info")
@Data
public class TAgentInfo extends Model<TAgentInfo> {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	/**
	 * 省
	 */
	private String province;
	/**
	 * 市
	 */
	private String city;
	/**
	 * 区
	 */
	private String area;
	/**
	 * 具体地址
	 */
	@TableField("specific_addr")
	private String specificAddr;
	/**
	 * 联系人
	 */
	@TableField("contact_people")
	private String contactPeople;
	/**
	 * 联系方式
	 */
	@TableField("contact_tel")
	private String contactTel;
	/**
	 * 开户行
	 */
	@TableField("accounts_bank")
	private String accountsBank;
	/**
	 * 银行卡号
	 */
	@TableField("card_num")
	private String cardNum;
	/**
	 * 备注
	 */
	private String remarks;
	@TableField("create_time")
	private Date createTime;
	@TableField("creator_role")
	private String creatorRole;
	@TableField("creator_id")
	private Long creatorId;
	@TableField("update_time")
	private Date updateTime;
	@TableField("updater_role")
	private String updaterRole;
	@TableField("updater_id")
	private Long updaterId;
	@TableField("is_delete")
	private Integer isDelete;
	@TableField("open_province")
	private String openProvince;
	@TableField("open_city")
	private String openCity;
	@TableField("agent_type")
	private Integer agentType;// 代理商类型(1:代理商 2:园所合伙人)
	@TableField("school_count")
	private Integer schoolCount;// 学校数量
	@TableField("school_count_limit")
	private Integer schoolCountLimit;// 园所数量限制
	/**
	 * 代理商名称
	 */
	@TableField("agent_name")
	private String agentName;

	/**
	 * 版本号
	 */
	@Version
	private Integer versionNo;

	@Override
	protected Serializable pkVal() {

		return id;
	}

}
